/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.req.GetNextSequenceRequest;
import com.xy.lang.domain.Result;
import com.xy.biz.rs.domain.bo.ManufactureApplyBO;
import com.xy.biz.rs.domain.query.ManufactureApplyQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-14
 */
public interface ManufactureApplyService {

	/**
	 * 保存
	 *
	 * @param manufactureApplyBO
	 */
	Result<?> saveManufactureApply(ManufactureApplyBO manufactureApplyBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllManufactureApply(Collection<ManufactureApplyBO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureApplyBO
	 */
	Result<?> updateManufactureApply(ManufactureApplyBO manufactureApplyBO);

	/**
	 * 删除
	 *
	 * @param manufactureApplyId
	 */
	Result<?> deleteManufactureApply(Long manufactureApplyId);

	/**
	 * 查找一个
	 *
	 * @param manufactureApplyId
	 * @return
	 */
	ManufactureApplyBO getManufactureApply(Long manufactureApplyId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ManufactureApplyBO> listManufactureApplyById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ManufactureApplyBO> listManufactureApply(ManufactureApplyQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countManufactureApply(ManufactureApplyQuery query);

    int getNextSequence(GetNextSequenceRequest request);

    Result<?> updateManufactureApplyStatus(ManufactureApplyBO toBO);
}
